package com.kun.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Version:v1.0
 * @Author: 鲁坤
 * @Date: 2021-03-26
 * @ClassName: WorkOrder
 * @Description: 工单表 展示用户的
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {
    private int oid;                //工单号
    private int uid;                //用户id
    private String ordertype;            //工单类型
    private String title;           //标题
    private String question;        //问题
    private int orderlevel;              //级别
    private int ostatus;            //工单状态
    private Timestamp createtime;   //工单创建时间
    private Timestamp endtime;      //工单结束时间
    private String comment;         //工单评价
    private float commentscore;     //工单评分

    public Order(int uid, String ordertype, String title, String question, int orderlevel, Timestamp createtime) {
        this.uid = uid;
        this.ordertype = ordertype;
        this.title = title;
        this.question = question;
        this.orderlevel = orderlevel;
        this.createtime = createtime;
    }
}
